package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmAiCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/v1/ai/category")
public class WmAiCategoryController {


    @Resource
    private WmAiCategoryService wmAiCategoryService;

    /**
     * 查询所有AI工具分类
     * @return
     */
    @GetMapping("/list")
    public ResponseResult listAll() {

        return wmAiCategoryService.listAll();
    }
}